/*
 * @Author: dfh
 * @Date: 2024-10-17 11:17:43
 * @LastEditors: dfh
 * @Modified By: dfh
 * @describe:
 */
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import Layout from "@/layout/index.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    component: Layout,
    redirect: "/dashboard",
    children: [
      {
        path: "dashboard",
        name: "Dashboard",
        component: () => import("@/views/dashboard/index.vue")
      }
    ]
  }
];
export default createRouter({
  history: createWebHistory(),
  routes
});
